package threads.wait;

public class JoinTest1 {
    public static void main(String[] args) {
        Thread t1 = new Thread(new Runnable() {
            @Override
            public void run() {
                while (true) {
                    System.out.println(1);
                }

            }
        });
        t1.start();

    }
}
